<template>
  <div>{{lastname}}</div>
</template>

<script>
const lastname="iwen"
export default {
    
   data(){
       var lastname;
    if(sessionStorage.getItem('token') == null){
     lastname="iwen"
   }else{
      lastname=sessionStorage.getItem('token')
   }
   alert(lastname)
   return{
       lastname:lastname
   }
}
   }
   
</script>

<style>

</style>